home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19961006-19970104 / 000262_news@columbia.edu _Thu Dec 5 02:58:50 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  7KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.8.3/8.8.3) with ESMTP id CAA18933 for <kermit.misc@watsun.cc.columbia.edu>; Thu, 5 Dec 1996 02:58:43 -0500 (EST)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.8.3/8.8.3) id CAA08880 for kermit.misc@watsun; Thu, 5 Dec 1996 02:58:41 -0500 (EST)
  4. Path: news.columbia.edu!psinntp!psinntp!howland.erols.net!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  5. From: jrd@cc.usu.edu (Joe Doupnik)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Random login prompt with K95
  8. Message-ID: <1996Dec4.205928.90168@cc.usu.edu>
  9. Date: 4 Dec 96 20:59:27 MDT
  10. References: <1996Dec3.161932.1217@cesi> <581mdn$3lf$1@apakabar.cc.columbia.edu> <5824av$f1v$1@apakabar.cc.columbia.edu>
  11. Organization: Utah State University
  12. Lines: 119
  13.  
  14. In article <5824av$f1v$1@apakabar.cc.columbia.edu>, fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
  15. > In article <581mdn$3lf$1@apakabar.cc.columbia.edu>,
  16. > Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  17. > : In article <1996Dec3.161932.1217@cesi>,
  18. > : Alberto Meregalli (DIF) <meregalli@cesi.it> wrote:
  19. > : : ...
  20. > : : What the user sees is that the "Username:" prompt doesn't appear
  21. > : : regularly, but rather randomly. What seems to be apparent in the
  22. > : : sniffer captures is that while many option negotiations go on the VAX
  23. > : : always immediately refuses the NEW-ENVIRONMENT option, but all data
  24. > : : sent out by it before K95 acknowledges that with a WON'T
  25. > : : NEW-ENVIRONMENT are not revealed to the user. So if the VAX delays a
  26. > : : little sending out the prompt, that's shown to the user, otherwise it
  27. > : : is lost.
  28. > :
  29. > Followup #2, in which a more likely explanation is offered, based on
  30. > the fact that Kermit 95 1.1.8 is the first version to support "true"
  31. > terminal type negotiation.
  32. > : : - option 31 (Negotiate About Window Size): it is "negotiated" up to
  33. > : : four times: that is K95 sends out up to four times the same 80 columns
  34. > : : x 24 lines dimension
  35. > :
  36. > This is probably happening because the terminal type is being renegotiated:
  37. > "My terminal type is VT320", "I don't like that one, please try another",
  38. > "OK, it's VT220", etc etc.  This is documented in section 6.2 of UPDATES.DOC.
  39. > It could be the root of all the other symptoms you have reported.
  40. > In a test on a nearby VMS system, K95's debug log includes the following:
  41. > TELNET SENT WILL TERMINAL-TYPE
  42. > TELNET SENT WILL NEGOTIATE-ABOUT-WINDOW-SIZE
  43. > TELNET RCVD DO TERMINAL-TYPE
  44. > TELNET RCVD DO NEGOTIATE-ABOUT-WINDOW-SIZE
  45. > TELNET SENT SB NAWS 80 49 IAC SE
  46. > TELNET RCVD SB TERMINAL-TYPE SEND  IAC SE
  47. > TELNET SENT SB TERMINAL-TYPE IS VT320 IAC SE  <-- We tell our terminal type
  48. > Welcome to Blah Blah VMS V6.2      <-- VMS host sends herald and prompt
  49. > Username:
  50. > So far so good.  But VMS doesn't like the VT320 terminal type, so it sends
  51. > a message asking us to try another one, so we drop down to VT220:
  52. > TELNET RCVD SB TERMINAL-TYPE SEND  IAC SE
  53. > TELNET SENT SB NAWS 80 49 IAC SE
  54. > TELNET SENT SB TERMINAL-TYPE IS VT220 IAC SE
  55. > But whenever we change terminal types we have to clear the screen.  Why?
  56. > Because different terminal types might have different dimensions, coloration,
  57. > attributes, etc, and we must initialize all of this when switching emulations.
  58. > So now the user sees a blank screen.  (Scrollback would reveal the herald
  59. > and Username: prompt on the previous screen.)  And we also have to
  60. > renogiatiate all the other stuff (screen size via NAWS, etc).
  61. > The problem is that VMS (Multinet) is trying to do all this AFTER the 
  62. > herald and Username prompt have been issued, rather than before, and that's
  63. > why the Username prompt disappears.  In this case, it would have nothing
  64. > at all to do with the NEW-ENVIRONMENT (username) negotiation.
  65. > The workaround would be to fix VMS to accept VT320 as a terminal type
  66. > (why doesn't it?), or set Kermit's emulation to VT100 or whatever it is
  67. > that VMS is expecting.
  68. > - Frank
  69. -----------
  70.     The thread is also running on the Multinet listserver. The suggestion
  71. from TGV/Cisco is use string  vt300_series   as the terminal ident. Tried here
  72. all in lower case and it did stick on the first query. Meanwhile TGV says
  73. they will think about all of this.
  74.     While it is convenient to complain to TGV we should also keep in
  75. mind that VMS itself classes terminals by major number (100, 200, etc, or in
  76. VMS-speak DEC_CRT, DEC_CRT2, etc) and then depends on a detailed report of 
  77. capabilities to handle operations. This means a VT320 isn't known to VMS as
  78. a VT320, but as a VT300_Series with certain features (variable from model to 
  79. model of VT320 too). MS-DOS Kermit and Kermit95 know how to report these 
  80. features and thus VMS itself is most happy with them. Below is what MSK v3.15
  81. beta looks like to VMS v6.1 (via Multinet 4.0A):
  82.  
  83. $ sh term
  84. Terminal: _NTY26:     Device_Type: VT300_Series  Owner: JRD
  85. Remote Port Info: jrd.usu.edu
  86.  
  87.    Input:    9600     LFfill:  0      Width:  80      Parity: None
  88.    Output:   9600     CRfill:  0      Page:   24
  89.  
  90. Terminal Characteristics:
  91.    Interactive        Echo               Type_ahead         No Escape
  92.    Hostsync           TTsync             Lowercase          Tab
  93.    Wrap               Scope              Remote             Eightbit
  94.    No Broadcast       No Readsync        No Form            Fulldup
  95.    No Modem           No Local_echo      Autobaud           Hangup
  96.    No Brdcstmbx       No DMA             No Altypeahd       Set_speed
  97.    No Commsync        Line Editing       Insert editing     No Fallback
  98.    No Dialup          No Secure server   No Disconnect      No Pasthru
  99.    No Syspassword     SIXEL Graphics     No Soft Characters Printer port
  100.    Numeric Keypad     ANSI_CRT           No Regis           No Block_mode
  101.    Advanced_video     Edit_mode          DEC_CRT            DEC_CRT2
  102.    DEC_CRT3           No DEC_CRT4        No DEC_CRT5        Ansi_Color
  103.    VMS Style Input
  104. $
  105.  
  106.     Note the "Ansi_Color" which a real VT320 lacks, and "No Soft
  107. Characters" which a real VT320 posseses. Quite a complicated set of
  108. ingredients. But Telnet daemons ought to be a triffle smarter than this in 
  109. accepting well known terminal identifications such as "VT320" (case 
  110. insensitive please). Even VT3xx or VT2xx would be a good first step in
  111. recognizing terminal kinds, where xx are any digits. To ensure MSK's 
  112. capabilities are understood by VMS, despite Telnet Options, I add 
  113. SET TERM/INQUIRE to the login process to request a detailed report from 
  114. the terminal.
  115.     We see something else in Frank's material above. Telnet Options
  116. don't have a way of saying, "What's a VT320? I can't deal with that. What
  117. else can you pretend to be?" and thereby indicate to the terminal emulator
  118. to change characteristics. Instead the terminal type option query is simply
  119. repeated, and repeated, to elicit a shopping list. That is not a good 
  120. negotiation design (pumping dry the victim), and it ratchets one way. 
  121. But "it's too late now."
  122.     Joe D.